﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="orderQuery.aspx.cs" Inherits="WebSite.admin.order.orderQuery" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>福利点点通 </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
        <script src="../js/common.js" type="text/javascript"></script>
    <style>
     #ext-comp-1002
     {
         margin-top:-20px;
         }
    </style>
</head>
<body>
    <form id="form1" runat="server">
     <ext:PageManager ID="PageManager1" runat="server" />
      <ext:SimpleForm ID="extForm1" runat="server" BodyPadding="5px"   
            EnableBackgroundColor="false" Title="订单处理"  ShowHeader="true" >
              <Items>
               <ext:Panel ID="Panel2" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                   <ext:Label ID="lblGoodsType"   runat="server" Width="70px" Text="&nbsp;&nbsp;订单号："></ext:Label>
                   <ext:TextBox runat="server" ID="txtOrderCode"   MaxLength="100" Label="订单号" ></ext:TextBox>
                   <ext:Label ID="lblOrderStates"   runat="server" Text="&nbsp;&nbsp;订单状态："></ext:Label>
                   <ext:DropDownList ID="ddlOrderStates"  runat="server" Width="100px"  Text="订单状态" ShowLabel="true" Label="订单状态">
                       <ext:ListItem Text="新订单" Selected="true" Value="0" />
                       <ext:ListItem Text="备货中" Value="1" />
                       <ext:ListItem Text="已发货" Value="2" />
                       <ext:ListItem Text="已完成" Value="3" />
                       <ext:ListItem Text="所有" Value="-1" />
                  </ext:DropDownList>
                  <ext:Label ID="lblSendDate"  Width="80px"    runat="server" Text="&nbsp;&nbsp;送货日期从："></ext:Label>
                  <ext:DatePicker ID="dpSendDateFrom" Width="100px" Label="送货日期从" runat="server"> </ext:DatePicker>
                  <ext:Label ID="Label1"  Width="30px"    runat="server" Text="&nbsp;&nbsp;到："></ext:Label>
                  <ext:DatePicker ID="dpSendDateTo" Width="100px" Label="到" runat="server"> </ext:DatePicker>
                  <ext:Label ID="Label5"  Width="70px"    runat="server" Text="&nbsp;&nbsp;联系方式："></ext:Label>
                   <ext:TextBox runat="server" ID="txtLinkWay"   MaxLength="100" Label="联系方式" ></ext:TextBox>
                   <ext:Label ID="Label6"  Width="60px"    runat="server" Text="&nbsp;&nbsp;收件人："></ext:Label>
                   <ext:TextBox runat="server" ID="txtCname"   MaxLength="100" Label="收件人" ></ext:TextBox>
                </Items>
         </ext:Panel>

         <ext:Panel ID="Panel1" ShowHeader="false"  CssClass="x-form-item" ShowBorder="false" Layout="Column" runat="server">
             <Items>
                <ext:Label ID="Label2"  Width="70px"    runat="server" Text="&nbsp;&nbsp;商品名称："></ext:Label>
            <ext:TextBox runat="server" ID="txtGoodsName"   MaxLength="100" Label="商品名称" ></ext:TextBox>
                 <ext:Label ID="Label3"  Width="80px"    runat="server" Text="&nbsp;&nbsp;卡发行商："></ext:Label>        
                 <ext:DropDownList ID="ddlPublishCompany"  runat="server"  Text="卡发行商" ShowLabel="true" Label="卡发行商"></ext:DropDownList>
                 <ext:Label ID="lblCardType"  Width="60px"    runat="server" Text="&nbsp;&nbsp;卡类型 ："></ext:Label>
                 <ext:DropDownList ID="ddlCardType"  runat="server"  Text="卡类型" ShowLabel="true" Label="卡类型"></ext:DropDownList>

                  <ext:Label ID="Label7"  Width="70px"    runat="server" Text="&nbsp;&nbsp;收件地址："></ext:Label>
                   <ext:TextBox runat="server" ID="txtAddress"   MaxLength="100" Label="收件地址" ></ext:TextBox>

                 <ext:Button ID="btnSearch" Text="搜索"  CssClass="mleft mright" runat="server"  OnClick="btnSearch_Click"></ext:Button>
                 <ext:Button ID="btnExport" Text="导出"  CssClass="mleft mright" runat="server" 
                     OnClick="btnExport_Click"  ></ext:Button>
               </Items>
         </ext:Panel>
     </Items>
     
   </ext:SimpleForm>


         <ext:Grid ID="Grid1" Title="查询结果" PageSize="50" ShowBorder="false"  CssClass="x-form-item"  Height="398px"  AllowPaging="true" 
                        OnPageIndexChange="Grid1_PageIndexChange" ShowHeader="False" runat="server" EnableCheckBoxSelect="false"   AllowSorting="true"    IsDatabasePaging="true" 
                        DataKeyNames="orderid" OnSort="Grid1_Sort" EnableRowNumber="True">
        <Columns>


                 <ext:TemplateField Width="80px" SortField="cardcode" HeaderText="订单号">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('OrderProcessDetail','/admin/order/orders.aspx?oid=<%# Eval("orderid") %>&flag=2','订单查看-<%# Eval("orderid")%>','')"; title="订单号"><%# Eval("ordercode")%></a>
                </ItemTemplate>
            </ext:TemplateField>
            <ext:BoundField Width="200px" ColumnID="pay" SortField="pay" DataField="pay" DataFormatString="{0}"
                HeaderText="付款方式" />
            <ext:BoundField Width="100px" ColumnID="sumPoints" SortField="sumPoints" DataField="sumPoints" DataFormatString="{0}"
                HeaderText="总福点数" />
            <ext:BoundField Width="80px" DataField="ordertime" SortField="ordertime" DataFormatString="{0:yy-MM-dd}"
                HeaderText="下单时间" />
            <ext:BoundField Width="100px" DataField="senddate" SortField="senddate" DataFormatString="{0:yy-MM-dd}"
                HeaderText="送货时间" />
            <ext:BoundField Width="100px" ColumnID="states" SortField="states" DataField="statesName" DataFormatString="{0}"
                HeaderText="订单状态" />
            <ext:BoundField Width="140px" ColumnID="SendCompany" SortField="SendCompany" DataField="SendCompany" DataFormatString="{0}"
                HeaderText="物流公司" />
            <ext:BoundField Width="100px" ColumnID="SendCode" SortField="SendCode" DataField="SendCode" DataFormatString="{0}"
                HeaderText="物流单号" />
            <ext:TemplateField Width="60px" SortField="cardcode" HeaderText="操作">
                <ItemTemplate>
                      <a href="#" onclick="openNewTab('OrderProcessDetail','/admin/order/orders.aspx?oid=<%# Eval("orderid") %>&flag=2','订单查看-<%# Eval("orderid")%>','')"; title="订单查看">[查看]</a>
                </ItemTemplate>
            </ext:TemplateField>
        </Columns>
    </ext:Grid>
    </form>
</body>
</html>
